﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Text;

using Peradigm.Framework.Domain.Parties;
using Peradigm.Framework.Domain.Security;

using Liberty.Domain.ApprovalManagement;
using Liberty.Persistence.ApprovalManagement;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Tests.PersistenceTests.ApprovalManagement
{
    [TestClass()]
    public class EventBrokerTests
    {
        #region Constants
        private const string CONNECTION_STRING = "ConnectionString";
        #endregion

        #region Properties
        protected string ConnectionString
        {
            get
            {
                return ConfigurationSettings.AppSettings[CONNECTION_STRING];
            }
        }
        #endregion

        #region Setup and Teardown GrantTests
        [TestInitialize()]
        public void SetupEventBrokerTests()
        {
        }

        [TestCleanup()]
        public void TeardownEventBrokerTests()
        {
        }
        #endregion

        #region Test Methods
        [TestMethod()]
        public void TestFollowUpEventsForUser()
        {
            EventBroker eventBroker = new EventBroker( this.ConnectionString );
            User user = new User();
            user.Oid = 10;
            user.Guid = new Guid( "4A7507F5-2BDE-417F-AE1F-FB885330C5B6" );
            List<FollowUpEvent> events = eventBroker.FollowUpEventsFor( user );
            Assert.AreEqual( 1, events.Count, "Events.Count" );
        }
        #endregion

        #region Support Methods
        #endregion

        #region Data Elements
        #endregion


    }
}
